/*
 * =====================================================================================
 *
 *       Filename:  main.cpp
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  04/15/12 18:51:31
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  YOUR NAME (), 
 *        Company:  
 *
 * =====================================================================================
 */
#include    <iostream>

using namespace std;

int test(void * test_id)
{
    int a = 0;
    a = *(int*)test_id;
    return a;
}
int main(void)
{
    int a = 1;
    int b = 0;
    for (int i = 0; i < 10000; ++i)
    {
        b = test(&a);
        if (b != a)
            cout<<"b(returned from test:"<<b<<endl;
    }
    char *c = new char[4];
    c[0] = 'h';
    c[1] = 'e';
    c[2] = 'l';
    c[3] = 'o';

    cout<<"*(void*)c"<<(void*)c<<endl;
    cout<<"over"<<endl;

    return 0;
}
